翻訳と辞書
Words near each other
・ Methodist Episcopal Church of Burlington
・ Methodist Episcopal Church of Butler
・ Methodist Episcopal Church of Goshen
・ Methoctramine
・ Method
・ Method & Red
・ Method (computer programming)
・ Method (Experience Design Firm)
・ Method (film)
・ Method (Godhead)
・ Method (music)
・ Method (patent)
・ Method acting
・ Method Actor
・ Method Animation
Method cascading
・ Method chaining
・ Method engineering
・ Method Fest Independent Film Festival
・ Method Framework for Engineering System Architectures
・ Method grab
・ Method Man
・ Method Man & Redman
・ Method Man (disambiguation)
・ Method Man (film)
・ Method Man (song)
・ Method Man discography
・ Method Man filmography
・ Method Man videography
・ Method Music


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Method cascading : ウィキペディア英語版
Method cascading
In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces.
For example in Dart, the cascade:

a..b()
..c();

is equivalent to the individual calls:

a.b();
a.c();

Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see comparison with method chaining, below.
==Application==
Cascading is syntactic sugar that eliminates the need to list the object repeatedly. This is particularly useful if the object is the value of a lengthy expression, as it eliminates the need to either list the expression repeatedly or use a temporary variable.
This is particularly used in fluent interfaces, which feature many method calls on a single object.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Method cascading」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.